require("../css/advertisement.less");

let timerDom = document.querySelector('.timer');
// 默认数字 为 5 定时器 
let num = 5;
setInterval(function(){
    num--;
    if(num <=0){
      
        location.href = './login.html'
    }else{
        timerDom.innerText=num+'S';
    }
},1000)


// 监听白色盒子 点击跳转功能
let conBtn = document.querySelector('.con')
conBtn.addEventListener('click',function(){
    location.href = './login.html'
})